#!/bin/bash

if ps -ef | grep -v grep | grep -q [C]hatApp
then
   echo "Service is up"
else
   echo "Service is down"
   gnome-terminal -x ./ChatApp
fi